package com.nl.bean.output;

/**
 * @author shihb
 * @date 2019/12/23 17:07
 * 窗口聚合结果输出类
 */
public class WindowAggResult<KEY>{

  /**
   * 分组的key
   */
  private KEY key;
  /**
   * 窗口的结束时间
   */
  private long windowEnd;
  /**
   * 聚合的结果
   */
  private long count;

  public WindowAggResult() {
  }

  public WindowAggResult(KEY key, long windowEnd, long count) {
    this.key = key;
    this.windowEnd = windowEnd;
    this.count = count;
  }

  public KEY getKey() {
    return key;
  }

  public void setKey(KEY key) {
    this.key = key;
  }

  public long getWindowEnd() {
    return windowEnd;
  }

  public void setWindowEnd(long windowEnd) {
    this.windowEnd = windowEnd;
  }

  public long getCount() {
    return count;
  }

  public void setCount(long count) {
    this.count = count;
  }
}
